function val = get(record,propName)
% GET Get SinkToFile property from the specified object
% and return value. Property name are:
% - time
% - mean
% - var
% - VariableName
% - VariableUnit

switch propName
    case 'time'
        val = record.time;
    case 'mean'
        val = record.mean;
    case 'var'
        val = record.var;
    case 'VariableName'
        val = record.VariableName;
    case 'VariableUnit'
        val = record.VariableUnit;
    otherwise
        error([propName,' is not a valid property']);
end